package com.zeldu.video.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("video")
public class Video implements Serializable {
    @TableId(value = "id", type= IdType.ID_WORKER)
    private Long id;
    @TableField(value = "name")
    private String name;
    @TableField(value = "type")
    private int type;
    @TableField(value = "createTime")
    private Timestamp createTime;
    @TableField(value = "url")
    private String url;
    @TableField(value = "course_id")
    private String courseId;

    //传递id
    private String htmlId;
}
